package com.xique.system.controller;


import com.xique.common.core.web.controller.BaseController;
import com.xique.common.core.web.domain.AjaxResult;
import com.xique.system.bean.request.AreaCodeListRequest;
import com.xique.system.service.biz.IAreaBizService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * 地区码Controller
 *
 * @author ww
 * @date 2019-10-06
 */
@RestController
@RequestMapping("/area")
public class AreaController extends BaseController
{

    @Autowired
    private IAreaBizService areaBizService;


    /**
     * 查询地区码列表
     */
    @GetMapping("/codeList")
    public AjaxResult codeList(@Valid AreaCodeListRequest request) {
        return areaBizService.getAreaCodeList(request);
    }

}
